<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client;

class Accept
{
    private $format;
    private function __construct($format)
    {
        $this->format = $format;
    }
    public static function create($format)
    {
        return new static($format);
    }
    public function toString()
    {
        $key = strtoupper($this->format);
        $list = ["JSON" => "application/json", "XML" => "application/xml", "RAW" => "application/octet-stream", "FORM" => "application/x-www-form-urlencoded"];
        return isset($list[$key]) ? $list[$key] : $list["RAW"];
    }
}

?>